package com.reguang.pojo;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 
 * <p>Title: SysDeptDO</p>
 * <p>Description: 部门管理</p>
 * @author weibiao
 * @date 2020年1月15日
 */
@Table(name = "sys_dept")
public class SysDeptDO extends BaseDO implements Serializable {
	private static final long serialVersionUID = 1L;

	//Id
	@Id
	private Integer id;
	// 上级部门ID，一级部门为0
	private String parentId;
	// 部门名称
	private String name;
	// 排序
	private Integer orderNum;
	// 是否删除 -1：已删除 0：正常
	private Integer delFlag;
	//
	private Date createTime;
	//
	private Date updateTime;
	//
	private Date deleteTime;
	

	/**
	 * @return the createTime
	 */
	public Date getCreateTime() {
		return createTime;
	}

	/**
	 * @param createTime the createTime to set
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	/**
	 * @return the updateTime
	 */
	public Date getUpdateTime() {
		return updateTime;
	}

	/**
	 * @param updateTime the updateTime to set
	 */
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	/**
	 * @return the deleteTime
	 */
	public Date getDeleteTime() {
		return deleteTime;
	}

	/**
	 * @param deleteTime the deleteTime to set
	 */
	public void setDeleteTime(Date deleteTime) {
		this.deleteTime = deleteTime;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	/**
	 * 设置：部门名称
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * 获取：部门名称
	 */
	public String getName() {
		return name;
	}

	/**
	 * 设置：排序
	 */
	public void setOrderNum(Integer orderNum) {
		this.orderNum = orderNum;
	}

	/**
	 * 获取：排序
	 */
	public Integer getOrderNum() {
		return orderNum;
	}

	/**
	 * 设置：是否删除  -1：已删除  0：正常
	 */
	public void setDelFlag(Integer delFlag) {
		this.delFlag = delFlag;
	}

	/**
	 * 获取：是否删除  -1：已删除  0：正常
	 */
	public Integer getDelFlag() {
		return delFlag;
	}

	@Override
	public String toString() {
		return "SysDeptDO [id=" + id + ", parentId=" + parentId + ", name=" + name + ", orderNum=" + orderNum
				+ ", delFlag=" + delFlag + ", createTime=" + createTime + ", updateTime=" + updateTime + ", deleteTime="
				+ deleteTime + "]";
	}

}
